package com.yonyou.cyxdms.sysAuth.service.mapper;

import com.yonyou.cyx.framework.dao.base.SuperMapper;
import com.yonyou.cyxdms.sysAuth.service.entity.MenuRangePO;
import com.yonyou.cyxdms.sysAuth.service.vo.role.PermissionMenuRangeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 菜单数据权限 Mapper 接口
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */
public interface MenuRangeMapper extends SuperMapper<MenuRangePO> {

    List<PermissionMenuRangeVO> selectPermissionMenuRange(@Param("orgType") Integer orgType, @Param("appId") String appId);

    //获取tc_menu_raange表数据
    List<Map> getMenuRange();

    List<Map> findMenuRange(@Param("menuRangeId") Integer menuRangeId, @Param("params") Map<String, Object> params);

    List<Map> findMenuRange2(@Param("menuRangeId") Integer menuRangeId, @Param("params") Map<String, Object> params);

    List<Map<String, Object>> findAllMenuRange(@Param("menuId") Long menuId, @Param("appId") String appId);

    List<Map<String, Object>> findListmapOne(@Param("menuId") Long menuId, @Param("permissionIDList") List<String> permissionIDList, @Param("menuRangeId") Integer menuRangeId);

    List<Map<String, Object>> findListmapTwo(@Param("menuId") Long menuId, @Param("permissionIDList") List<String> permissionIDList, @Param("menuRangeId") Integer menuRangeId);

    List<Map<String, Object>> findListmap3One(@Param("menuId") Long menuId, @Param("permissionIDList") List<String> permissionIDList, @Param("menuRangeId") Integer menuRangeId);

    List<Map<String, Object>> findListmap3Two(@Param("menuId") Long menuId, @Param("permissionIDList") List<String> permissionIDList, @Param("menuRangeId") Integer menuRangeId);

    List<Map<String, Object>> findRemoteUrl(@Param("menuId") Long menuId, @Param("appId") String appId);
}
